This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Vanessa Asakigenoopsi 18.Dec.03 07:48 PM a Web browser Notes ClientAll ReleasesAll Platforms
I have an application certain Admin users will maintain documents and they are the only ones who should be able to access the database via the Notes Client. The rest of the user have access to the documents via a web browser and they need Author access to create special requests regarding the database. We have a PostOpen event in the Database Script that checks to see if its the Notes Client and if the person has a certain Role before allowing access. This works good except when there is a doclink to a document in the database. It doesn't recognize the person as having the Role and if the doclink is being launched from the Mail database, it closes the Mail database instead of the database that has the DB Script PostOpen event.
Code in the PostOpen Db Script:
@If(@ClientType = "Notes" & @IsNotMember("[DocAdmin]";@UserRoles); @Do(@Prompt([Ok];"Open Application from Web Only"; "This database must be opened using a Web Browser."); @Command([FileCloseWindow])); "")
If anyone has a better way to do this, I'd appreciate you sharing it.